<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>角色添加</title>


<script type="text/javascript"
	src="<%=path%>/script/jquery-1.7.2.min.js"></script>
  <script type="text/javascript" charset="utf-8" src=" <%=path%>/script/utf8-jsp/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="<%=path%>/script/utf8-jsp/ueditor.all.min.js"> </script>
    <!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
    <!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
    <script type="text/javascript" charset="utf-8" src="<%=path%>/script/utf8-jsp/lang/zh-cn/zh-cn.js"></script>
<script language="JavaScript" type="text/javascript" src="<%=path%>/script/My97DatePicker/WdatePicker.js"></script>

<script language="javascript">

	$(function(){
	
		var setting={
				toolbars: [[
		            'fullscreen', 'source', '|', 'undo', 'redo', '|',
		            'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|',
		            'rowspacingtop', 'rowspacingbottom', 'lineheight', '|',
		            'customstyle', 'paragraph', 'fontfamily', 'fontsize', '|',
		            'directionalityltr', 'directionalityrtl', 'indent', '|',
		            'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|', 'touppercase', 'tolowercase', '|',
		            'link', 'unlink', 'anchor', '|', 'imagenone', 'imageleft', 'imageright', 'imagecenter', '|',
		            'simpleupload', 'insertimage', 'emotion', 'scrawl', 'insertvideo', 'music', 'attachment', 'map', 'gmap', 'insertframe', 'insertcode', 'webapp', 'pagebreak', 'template', 'background', '|',
		            'horizontal', 'date', 'time', 'spechars', 'snapscreen', 'wordimage', '|',
		            'inserttable', 'deletetable', 'insertparagraphbeforetable', 'insertrow', 'deleterow', 'insertcol', 'deletecol', 'mergecells', 'mergeright', 'mergedown', 'splittocells', 'splittorows', 'splittocols', 'charts', '|',
		            'print', 'preview', 'searchreplace', 'drafts', 'help'
		        ]],
		        //当内容过多时滚动条出现在编辑器里
		        autoHeightEnabled:false  
				
				
		};
		 UE.getEditor('editor',setting);
	});
	

	function saveData(){
		
		document.getElementById("form1").submit();
		
	}
	
</script>
</head>

<body>
	<table width="100%" border="0" align="center" cellpadding="0"
		cellspacing="0">
		<!-- 头部 -->
		<tr>
			<td height="30"><table width="100%" border="0" cellspacing="0"
					cellpadding="0">
					<tr>
						<td height="24" bgcolor="#353c44"><table width="100%"
								border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td><table width="100%" border="0" cellspacing="0"
											cellpadding="0">
											<tr>
												<td width="6%" height="19" valign="bottom"><div
														align="center">
														<img src="images/tb.gif" width="14" height="14" />
													</div></td>
												<td width="94%" valign="bottom"><span class="STYLE1">
														管理人员基本信息列表1111</span></td>
											</tr>
										</table></td>
									<td><div align="right">
											<span class="STYLE1"> <input type="checkbox"
												name="checkbox11" id="checkbox11" /> 全选 &nbsp;&nbsp;<img
												src="images/add.gif" width="10" height="10" /> 添加 &nbsp; <img
												src="images/del.gif" width="10" height="10" /> 删除
												&nbsp;&nbsp;<img src="images/edit.gif" width="10"
												height="10" /> 编辑 &nbsp;
											</span><span class="STYLE1"> &nbsp;</span>
										</div></td>
								</tr>
							</table></td>
					</tr>
				</table></td>
		</tr>


		<!-- 中间的数据 -->
		<tr>
			<td>
				<form id="form1" enctype="multipart/form-data"  action="<%=path%>/noticeAction!save" method="post">
					<table width="100%" border="0" cellpadding="0" cellspacing="1"
						bgcolor="#a8c7ce">
						<tr>
							<td width="15%" height="20" bgcolor="d3eaef" class="STYLE10">公告标题：</td>
							<td width="85%" height="20" bgcolor="#FFFFFF" class="STYLE19">
								<s:textfield name="notice_title" id="notice_title" />
							</td>
						</tr>
						  <tr>
					        <td width="15%" height="20" bgcolor="d3eaef" class="STYLE10">公告类型：</td>
					        <td width="85%" height="20" bgcolor="#FFFFFF" class="STYLE19">
					        	<s:radio list="#notice_typeMap" name="notice_type"></s:radio>
					        
					        </td>
					      </tr>
						<tr>
							<td width="4%" height="20" bgcolor="d3eaef" class="STYLE10">发布者：</td>
							<td width="10%" height="20" bgcolor="#FFFFFF" class="STYLE19">
								<s:textfield name="notice_adduser" id="notice_adduser" />
							</td>
						</tr>
						<tr>
							<td width="4%" height="20" bgcolor="d3eaef" class="STYLE10">发布时间：</td>
							<td width="10%" height="20" bgcolor="#FFFFFF" class="STYLE19">
								<s:textfield name="notice_addtime" id="notice_addtime" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'});" cssClass="Wdate"/>
							</td>
						</tr>
						<tr>
							<td width="1%" height="10" bgcolor="d3eaef" class="STYLE10">用户内容：</td>
							<td width="1%" height="10" bgcolor="#FFFFFF" class="STYLE19" >
							 <script id="editor" name="notice_content" type="text/plain" style="width:100%;height:220px;overflow: scroll;"></script>

							</td>
						</tr>
						<tr>
							<td width="4%" height="20" bgcolor="d3eaef" class="STYLE10">公告附件1：</td>
							<td width="10%" height="20" bgcolor="#FFFFFF" class="STYLE19">
								<s:file name="notice_attach" id="notice_attach" ></s:file>
							</td>
						</tr>
						<tr>
							<td width="4%" height="20" bgcolor="d3eaef" class="STYLE10">公告附件2：</td>
							<td width="10%" height="20" bgcolor="#FFFFFF" class="STYLE19">
								<s:file name="notice_attach" id="" ></s:file>
							</td>
						</tr>
						<tr>
							<td width="4%" height="20" colspan="2" bgcolor="#FFFFFF"
								class="STYLE19" align="center"><input type="button"
								value="保存数据" id="button1" onclick="saveData();" />
						</tr>
					</table>
				</form>
			</td>
		</tr>
	</table>
</body>
</html>
